package com.steam.feign;

import com.steam.domain.Store;
import com.steam.utils.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "store-server", fallbackFactory = StoreServiceFallbackFactory.class)
@RequestMapping("/store")
public interface StoreService {

    @PostMapping("/add")
    JsonResult add(@RequestBody Store store);

}
